﻿using System;
using System.Collections.Generic;
using Cool.Core.Entities.System;
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace Cool.Core.SeedData
{
    public class SysMenuSeedData : IEntitySeedData<SysMenu>
    {
        public IEnumerable<SysMenu> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
                new SysMenu
                {
                    Id = 1,MenuName="", Path = "/",Component="Layout", ParentId=-1,Status='0',OrderNum=1,MenuType='M'
                },
                new SysMenu
                {
                    Id = 2,Path = "index",Component="@/views/index/index",ParentId=1,MenuName="首页",Icon="home",Status='0',OrderNum=2,MenuType='C'
                },
            };
        }
    }
}
